@extends('admin.public.base')


@section('title', '会员管理')


@section('content')

    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        会员管理
        <span class="c-gray en">&gt;</span>
        会员列表
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
           href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="Hui-article">
        <article class="cl pd-20">
            <div class="text-c">
                <form action="" method="get">
                    <input type="text" name="keyword" id="" placeholder=" 会员电话号" style="width:250px"
                           class="input-text">
                    <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜会员
                    </button>
                </form>
            </div>

            <div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">

				</span>
                <span class="r">共有数据：<strong>{{ $users->total() }}</strong> 条</span>
            </div>
            <div class="mt-20">
                <table class="table table-border table-bordered table-bg table-hover table-sort">
                    <thead>
                    <tr class="text-c">
                        <th width="80">id</th>
                        <th width="80">电话号</th>
                        <th width="80">状态</th>
                        <th width="75">注册时间</th>
                    </tr>
                    </thead>
                    <tbody>

                    @foreach($users as $user)
                        <tr class="text-c">
                            <td>{{$user['id']}}</td>
                            <td>
                                {{$user['tel']}}
                            </td>
                            <td class="td-status">
                                @if($user['status'] == 1)
                                    正常
                                @endif
                            </td>
                            <td class="f-14 td-manage">
                                {{$user['created_at']}}
                            </td>
                        </tr>

                    @endforeach

                    </tbody>
                </table>
            </div>
            <style>
                .page {
                    text-align: center;
                    padding: 10px;
                }

                .page ul li {
                    float: left;
                    padding: 5px 10px;
                    color: dodgerblue;
                    border: 1px dodgerblue solid;
                    border-radius: 5px;
                    margin-left: 5px;
                }

                .page ul li a {
                    padding: 5px;
                }
            </style>
            <div class="page">
                {{ $users->links() }}
            </div>
        </article>
    </div>
@endsection
